﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FlowThruAllocation.aspx.cs"
    Inherits="WMS6.Web.CrossDock.FlowThruAllocation1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>FlowThruAllocation</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/Verification.js" type="text/javascript"></script>

    <script src="../Js/checkbox.js" type="text/javascript"></script>

    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>

    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initEditNewPage();
        }
        
        function newASN()
        {
            var from = document.getElementById("hdnFrom").value;
            window.location.href = "FlowThruAllocation.aspx?from=" + from;
            return false;
        }
        
        
        //弹出窗口选择货品
        function selectSku()
        {
            var rtnValue = popModalWindow('../Configuration/SKUQuery.aspx?action=txtSkuID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtSkuID").focus();
                document.getElementById("txtSkuID").value = rtnValue;
            }
        }
        
             
        function showAction()
		{	
			var pos = getElementPos("btnAction");	
			document.getElementById("actionDiv").style.top = pos.y+17;
			document.getElementById("actionDiv").style.left = pos.x;  			
			document.getElementById("hiddenFlag").value = '1';
		}
		
		//显示 报表 DIV
		function showReport()
		{	
			var pos = getElementPos("htmlbtnReport");	
			document.getElementById("reportDiv").style.top = pos.y+17;
			document.getElementById("reportDiv").style.left = pos.x;  			
			document.getElementById("hiddenReportFlag").value = '1';
		}
		
       function hiddenDiv()
		{
			var flag = document.getElementById("hiddenFlag").value
			if(flag == "1")
			{
				document.getElementById("actionDiv").style.display = "block";
				document.getElementById("hiddenFlag").value = '0';
			}
			else 
			{
				document.getElementById("actionDiv").style.display = "none";
			}
		}
		//隐藏 报表 DIV
		function hiddenReportDiv()
		{
			var flag = document.getElementById("hiddenReportFlag").value
			if(flag == "1")
			{
				document.getElementById("reportDiv").style.display = "block";
				document.getElementById("hiddenReportFlag").value = '0';
			}
			else 
			{
				document.getElementById("reportDiv").style.display = "none";
			}
		}	


    </script>

</head>
<body>
    <form id="F79571" runat="server">
    <div>
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblOwner" runat="server" CssClass="label_header" Text="直通订单分配" meta:resourcekey="lblOwner"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnGoBack" runat="server" CssClass="button" Enabled="false" Text="<%$Resources:ButtonResource,btnGoBack%>"
                            CausesValidation="False" OnClick="btnGoBack_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnNew" runat="server" CssClass="button" Enabled="false"  Text="<%$Resources:ButtonResource,btnNew%>"
                            AccessKey="n" OnClientClick="newASN();return false;" />
                    </td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" CssClass="button" Enabled="false"  Text="<%$Resources:ButtonResource,btnSave%>"
                            AccessKey="s" OnClick="btnSave_Click" OnClientClick="SethdnPageQty('hdnPageQty');" />
                    </td>
                    <td>
                        <asp:Button ID="btnDelete" runat="server" Enabled="false"  CssClass="button" Text="<%$Resources:ButtonResource,btnDelete%>"
                            AccessKey="d" OnClientClick="javascript:if(confirmMsg('F4100_001')) return true; else return false;"
                            OnClick="btnDelete_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnCopy" runat="server"  Enabled="false" CssClass="button" Text="<%$Resources:ButtonResource,btnCopy%>"
                            AccessKey="c" OnClick="btnCopy_Click" />
                    </td>
                    <td>
                        <input id="btnAction" type="button" runat="server"  value="<%$Resources:ButtonResource,btnAction%>"
                            class="button" onclick="showAction();" />
                    </td>
                    <td>
                        <input id="htmlbtnReport" type="button" runat="server" value="<%$Resources:ButtonResource,btnReport%>"
                            class="button" onclick="showReport();" />
                    </td>
                </tr>
            </table>
        </div>
        <div>
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" meta:resourcekey="lblMsg"></asp:Label>
        </div>
        <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL" id="divL1">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur" onclick="setTab('one',1,3)"
                id="divM1">
                <asp:Label ID="one1" CssClass="hover" runat="server">常规</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="divR1">
                </div>
            </div>
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL2">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,3);"
                id="divM2">
                <asp:Label ID="one2" CssClass="navigationlabel" runat="server">订单行</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR2">
                </div>
            </div>
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL3">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',3,3);"
                id="divM3">
                <asp:Label ID="one3" CssClass="navigationlabel" runat="server">拣货明细</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR3">
                </div>
            </div>
        </div>
        <div id="div_content">
            <div id="con_one_1" style="display: block;">
                <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblReceiptID" CssClass="label" runat="server" Text="入库订单号" meta:resourcekey="lblReceiptID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblStatus" CssClass="label" runat="server" Text="状态" meta:resourcekey="lblStatus"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblDoor" runat="server" CssClass="label" Text="门" meta:resourcekey="lblDoor"></asp:Label>
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtReceiptID" runat="server" CssClass="textbox" meta:resourcekey="txtReceiptID"
                                Enabled="false"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:DropDownList ID="ddlStatus" runat="server" CssClass="mediumselectbox" Enabled="false"
                                meta:resourcekey="ddlStatus">
                            </asp:DropDownList>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtDoor" runat="server" CssClass="textbox" meta:resourcekey="txtDoor"></asp:TextBox>
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblPoID" runat="server" CssClass="label" Text="采购订单号" meta:resourcekey="lblPoID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblOwnerID" runat="server" CssClass="label" Text="货主" meta:resourcekey="lblOwnerID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblRoute" runat="server" CssClass="label" Text="路线" meta:resourcekey="lblRoute"></asp:Label>
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtPoID" runat="server" CssClass="textbox"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtOwnerID" runat="server" CssClass="textbox"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtRoute" runat="server" CssClass="textbox"></asp:TextBox>
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblExternOrderID" runat="server" CssClass="label" Text="外部订单号" meta:resourcekey="lblExternOrderID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblConsigneeID" runat="server" CssClass="label" Text="收货人代码" meta:resourcekey="lblConsigneeID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblStop" runat="server" CssClass="label" Text="站点" meta:resourcekey="lblStop"></asp:Label>
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtExternOrderID" runat="server" CssClass="textbox" Text="" meta:resourcekey="txtExternOrderID"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtConsigneeID" runat="server" CssClass="textbox" meta:resourcekey="txtConsigneeID"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtStop" runat="server" CssClass="textbox" meta:resourcekey="txtStop"></asp:TextBox>
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblDeliveryDate" runat="server" CssClass="label" meta:resourcekey="lblDeliveryDate"
                                Text="要求发货日期"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblExternalLoadID" runat="server" CssClass="label" Text="外部装载号" meta:resourcekey="lblExternalLoadID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblLoadID" runat="server" CssClass="label" Text="装载号" meta:resourcekey="lblLoadID"></asp:Label>
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtDeliveryDate" runat="server" CssClass="textbox" meta:resourcekey="txtDeliveryDate"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtExternalLoadID" runat="server" CssClass="textbox" meta:resourcekey="txtExternalLoadID"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtLoadID" runat="server" CssClass="textbox" meta:resourcekey="txtLoadID"></asp:TextBox>
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td>
                            <asp:CheckBox ID="chkApportion" runat="server" CssClass="checkbox" Text="分配" Enabled="False"
                                meta:resourcekey="Apportion" />
                        </td>
                        <td>
                            <asp:CheckBox ID="chkIsActive" runat="server" CssClass="checkbox" Text="是否启用" Checked="true"
                                Enabled="false" meta:resourcekey="Apportion" />
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </div>
            <div id="con_one_2" style="display: none; overflow-x: auto; overflow-y: hidden;">
                <table width="1080px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td>
                            <table>
                                <tr>
                                    <td>
                                        <asp:Button ID="btnAllocate" runat="server" CssClass="button" Text="分配" OnClick="btnAllocate_Click" />
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div>
                                <div>
                                    <asp:GridView ID="gvXorderDetail" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                                        AllowPaging="True" CssClass="gridview" Width="850px" OnInit="gvXorderDetail_Init"
                                        DataKeyNames="LineID,Status" OnRowDataBound="gvXorderDetail_RowDataBound" OnSorting="gvXorderDetail_Sorting"
                                        meta:resourcekey="gvOrderDetail">
                                        <FooterStyle CssClass="GridViewFooterStyle" />
                                        <RowStyle CssClass="GridViewRowStyle" />
                                        <HeaderStyle CssClass="GridViewHeaderStyle" />
                                        <PagerStyle CssClass="GridViewPageStyle" />
                                        <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                        <Columns>
                                            <asp:TemplateField meta:resourcekey="TemplateField">
                                                <HeaderTemplate>
                                                    <img src="../Images/gvSettingpic.gif" id="img01" class="gvSettingImg" onclick="gvUserSetting('7011','gvOrderDetail');"
                                                        onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                                    <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvXorderDetail');"
                                                        meta:resourcekey="CheckBox1" />
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                    <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelect" />
                                                </ItemTemplate>
                                                <FooterTemplate>
                                                    <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvXorderDetail');"
                                                        meta:resourcekey="CheckBox2" />
                                                </FooterTemplate>
                                                <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                                <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="明细" FooterText="明细" meta:resourcekey="Detail">
                                                <ItemTemplate>
                                                    <a href="#"
                                                        target="_self"   >
                                                        <img src="../Images/icon_edit.gif" class="img" style="border: none 0px blue;" alt="receipt" /></a>
                                                </ItemTemplate>
                                                <ItemStyle CssClass="GridViewRowWidth_50" HorizontalAlign="Center" />
                                            </asp:TemplateField>
                                            <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="No">
                                                <ItemStyle CssClass="GridViewRowWidth_40" />
                                            </asp:BoundField>
                                            <asp:TemplateField HeaderText="货品代码" FooterText="货品代码" SortExpression="" meta:resourcekey="SkuID">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblSkuID" runat="server" Text='<%# Eval("SkuID").ToString() %>'></asp:Label>
                                                </ItemTemplate>
                                                <ItemStyle CssClass="GridViewRowWidth_100" />
                                            </asp:TemplateField>
                                            <asp:BoundField DataField="Status" HeaderText="状态" FooterText="状态" SortExpression=""
                                                meta:resourcekey="STATUSD">
                                                <ItemStyle CssClass="GridViewRowWidth_100" />
                                            </asp:BoundField>
                                            <asp:TemplateField FooterText="订货数量" HeaderText="订货数量" SortExpression="" meta:resourcekey="ORIGINALQTY">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblORIGINALQTY" runat="server" Text='<%# GetPreferenceDigit(Eval("OriginalQty").ToString()) %>'
                                                        meta:resourcekey="lblORIGINALQTY"></asp:Label>
                                                </ItemTemplate>
                                                <ItemStyle CssClass="GridViewRowWidth_100" />
                                            </asp:TemplateField>
                                            <asp:TemplateField FooterText="已处理数量" HeaderText="已处理数量" SortExpression="" meta:resourcekey="PREALLOCATEDQTY">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblPREALLOCATEDQTY" runat="server" Text='<%# GetPreferenceDigit(Eval("ProcessedQty").ToString()) %>'
                                                        meta:resourcekey="lblPREALLOCATEDQTY"></asp:Label>
                                                </ItemTemplate>
                                                <ItemStyle CssClass="GridViewRowWidth_100" />
                                            </asp:TemplateField>
                                            <asp:TemplateField FooterText="开放数量" HeaderText="开放数量" SortExpression="" meta:resourcekey="ALLOCATEDQTY">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblALLOCATEDQTY" runat="server" Text='<%# GetPreferenceDigit(Eval("OpenQty").ToString()) %>'
                                                        meta:resourcekey="lblALLOCATEDQTY"></asp:Label>
                                                </ItemTemplate>
                                                <ItemStyle CssClass="GridViewRowWidth_100" />
                                            </asp:TemplateField>
                                            <asp:TemplateField FooterText="待处理数量" HeaderText="待处理数量" SortExpression="" meta:resourcekey="PICKEDQTY">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblPICKEDQTY" runat="server" Text='<%# GetPreferenceDigit(Eval("ToProcessQty").ToString()) %>'
                                                        meta:resourcekey="lblPICKEDQTY"></asp:Label>
                                                </ItemTemplate>
                                                <ItemStyle CssClass="GridViewRowWidth_100" />
                                            </asp:TemplateField>
                                            <asp:TemplateField FooterText="发货数量" HeaderText="发货数量" SortExpression="" meta:resourcekey="SHIPPEDQTY">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblSHIPPEDQTY" runat="server" Text='<%# GetPreferenceDigit(Eval("ShippedQty").ToString()) %>'
                                                        meta:resourcekey="lblSHIPPEDQTY"></asp:Label>
                                                </ItemTemplate>
                                                <ItemStyle CssClass="GridViewRowWidth_100" />
                                            </asp:TemplateField>
                                        </Columns>
                                    </asp:GridView>
                                </div>
                            </div>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr style="height: 30px;">
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </div>
            <div id="con_one_3" style="display: none">
                <table width="1200px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td>
                            <table>
                                <tr>
                                    <td>
                                        <asp:Button ID="btnShipping" runat="server" OnClick="btnShipping_Click" CssClass="button"
                                            Text="发货" />
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div>
                                <asp:GridView ID="gvPickDetail" runat="server" AutoGenerateColumns="False" AllowSorting="True"
                                    CssClass="gridview" OnRowDataBound="gvPickDetail_RowDataBound" DataKeyNames="PickDetailID,OrderID,OrderLineID,Status"
                                    PageSize="20" Width="1400px" meta:resourcekey="gvPickDetail">
                                    <FooterStyle CssClass="GridViewFooterStyle" />
                                    <RowStyle CssClass="GridViewRowStyle" />
                                    <HeaderStyle CssClass="GridViewHeaderStyle" />
                                    <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                    <Columns>
                                        <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="No">
                                            <ItemStyle CssClass="GridViewRowWidth_40" />
                                        </asp:BoundField>
                                        <asp:TemplateField meta:resourcekey="TemplateField">
                                            <HeaderTemplate>
                                                <img src="../Images/gvSettingpic.gif" id="img01" class="gvSettingImg" onclick="gvUserSetting('7052','gvPickDetail');"
                                                    onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                                <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvPickDetail');"
                                                    meta:resourcekey="CheckBox1" />
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelect" />
                                            </ItemTemplate>
                                            <FooterTemplate>
                                                <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvPickDetail');"
                                                    meta:resourcekey="CheckBox2" />
                                            </FooterTemplate>
                                            <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                            <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="PickDetailID" HeaderText="拣货明细代码" FooterText="拣货明细代码"
                                            SortExpression="PickDetailID" meta:resourcekey="PICK_DETAIL_ID">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="OrderID" HeaderText="订单号" FooterText="订单号" SortExpression=" "
                                            meta:resourcekey="ORDER_ID">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="OrderLineID" HeaderText="行号" FooterText="行号" SortExpression=" "
                                            meta:resourcekey="ORDER_LINE_ID">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Status" HeaderText="状态" FooterText="状态" SortExpression="">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="OwnerID" HeaderText="货主代码" FooterText="货主代码" SortExpression=""
                                            meta:resourcekey="OWNER_ID">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="SkuID" HeaderText="货品代码" FooterText="货品代码" SortExpression=""
                                            meta:resourcekey="SKU_ID">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Loc" HeaderText="来源货位" FooterText="来源货位" SortExpression=""
                                            meta:resourcekey="Loc">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="ToLoc" HeaderText="目标货位" FooterText="目标货位" SortExpression=""
                                            meta:resourcekey="Loc">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:TemplateField FooterText="数量" HeaderText="数量" SortExpression="QTY" meta:resourcekey="QTY">
                                            <ItemTemplate>
                                                <asp:Label ID="lblQty" runat="server" Text='<%# GetPreferenceDigit(Eval("QTY").ToString()) %>'
                                                    meta:resourcekey="lblQty"></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="PackID" HeaderText="包装" FooterText="包装" SortExpression="">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:TemplateField FooterText="计量单位" HeaderText="计量单位">
                                            <ItemTemplate>
                                                <asp:Label ID="lblUomID" runat="server" Text='EA' meta:resourcekey="lblUomID"></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="LpnID" HeaderText="LPN" FooterText="LPN" SortExpression=""
                                            meta:resourcekey="LpnID">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Lot" HeaderText="批号" FooterText="批号" SortExpression=""
                                            meta:resourcekey="Lot">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                    </Columns>
                                    </asp:GridView>
                            </div>
                        </td>
                    </tr>
                    <tr style="height: 30px;">
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <input type="hidden" id="hiddenFlag" />
        <input type="hidden" id="hdnLineID" runat="server" />
        <input id="hdnOrderID" runat="server" type="hidden"></input>
        <input id="hdnFlag" runat="server" type="hidden" value="0"></input>
        <input id="hdnType" runat="server" type="hidden"></input>
        <input type="hidden" id="hdnFrom" runat="server" />
    </div>
    </form>
</body>
</html>
